﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;  //using this to define keys [key]
using System.ComponentModel.DataAnnotations.Schema; //using this to be able to use [foreignKey]
namespace BaseballGame.Models
{
    public class LeagueStandings
    {
        [Key]
        public int leagueColumn { get; set; }

        [ForeignKey("team")]
        public int teamId { get; set; }

        [ForeignKey("league")]
        public int leagueId { get; set; }

        [Display(Name = "GP")]
        public int games_played { get; set; }

        [Display(Name = "GW")]
        public int games_Won { get; set; }

        [Display(Name = "GL")]
        public int games_lost { get; set; }

        [Display(Name = "LP")]
        public int league_Position { get; set; }

        public league league { get; set; }
        public Team team { get; set; }
    }
}